package book;
//20230404430920沈泽华
public class Science_book extends book{
    public Science_book(int bookPage, double discount) {
        super(bookPage, discount);
    }

    @Override
    public void show_kind() {
        System.out.println("这个书的种类是科技书。");
    }

    @Override
    public double getPrice(int bookPage, double discount) {
        return price = discount * bookPage*0.1;
    }

    @Override
    public void showPrice() {

        System.out.printf("这本书的价格是 %.2f RMB \n",price);
    }
}
